
import Admin from '../views/Admin.vue'
import AchievementEdit from '../views/AchievementEdit.vue'
import AchievementList from '../views/AchievementList.vue'
import ContestEdit from '../views/ContestEdit.vue'
import ContestList from '../views/ContestList.vue'
import ArticleEdit from '../views/ArticleEdit.vue'
import ArticleList from '../views/ArticleList.vue'


export const adminRouters =[
		{
			path: '',
			component: Admin,
			name:'admin',
			children: [
				
				{path: '/achievement/upload',component: AchievementEdit},
				{path: '/achievement/edit/:id',component: AchievementEdit,props: true},
				{path: '/achievement/list',component: AchievementList},

				{path: '/contests/upload',component: ContestEdit},
				{path: '/contests/edit/:id',component: ContestEdit,props: true},
				{path: '/contests/list',component: ContestList},
				
				{path: '/articles/upload',component: ArticleEdit},
				{path: '/articles/edit/:id',component: ArticleEdit,props: true},
				{path: '/articles/list',component: ArticleList},
				
				{path: '/admin_user/page/:id',
				component:()=>import('../views/AdminUserEditPassword.vue'),props: true},
			]
		},
	]
